package com.example.map_20210624;

public class ExceptionTest extends RuntimeException{
    ExceptionTest(String message){
        super(message);// 自定义异常
    }

    public static void main(String[] args) {

        try {
            int a = 10 / 0;
        }catch (Exception e){
//            System.exit(0);
            throw new ExceptionTest("除数不能为0！！！");
        }finally {
            System.out.println("over..................");
        }
    }
}
